home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / batutil1.zip / SHOWDEMO.BAT < prev    next >
DOS Batch File  |  1990-03-25  |  2KB  |  53 lines

  1. :Batutil c(o) 1990 Barry Simon and Richard Wilson
  2. : Version 1.0
  3. echo off
  4. goto code
  5. :echo1
  6.    @1FBATUTIL @1Ehas a number of tools to spruce up what you display on
  7. the screen during batch files.  You can use the PRetty command to control
  8. colors so that
  9.      @1FBATUTIL {PR @@1EC@@1Fo@@1Al@@1Do@@1Br}
  10. would display as
  11.  
  12.       @1EC@1Fo@1Al@1Do@1Br
  13.  
  14. BATUTIL can also display
  15.  
  16.  
  17. :echo2
  18.  
  19.  
  20. The BIG letters can have varrying
  21.  
  22.  
  23. :echo3
  24.  
  25.  
  26. The strings that you echo (or that you place in the environment) have
  27. metastring translation, that is shorthand expressions which are converted at
  28. the time the batch file is run just as the DOS PROMPT command changes $$t to
  29. the current time.  These include:
  30.  
  31. @0A          SHORTHAND        MEANING             TRANSLATION
  32. @0A         ────────────    ────────────────    ───────────────────
  33. @0E           $$p         @0B    current path  @0F       $p
  34. @0E           $$W         @0B    day of week   @0F       $W
  35. @0E           $$E         @0B    date in full  @0F       $E
  36. @0E           $$H:$$m      @0B    time as HH:MM @0F       $H:$m
  37.  
  38.  
  39. One can place small amounts of material to echo on the command line and take
  40. whole screenfuls like this from a file.  In fact, this screen is part of
  41. the batch file itself!!
  42.  
  43. @0F  Thanks for using BATUTIL.   Hit a key to exit.
  44.  
  45.  
  46. :code
  47. set cur=OFF
  48. BATUTIL {CL}{RO 2}{FP %0 echo1}{BE $S$SBIG}{PR $_letters. Hit a key for more}{AS}{AT 0F}{CL}{FE %0 echo2}
  49. BATUTIL {CO 8}{BP @0BC@06o@02L@0Co@0ER@0Ds}{AT 0F}{EC $_and foregrounds$_$_}{CO 28}
  50. BATUTIL {AT 0E}{BI 255}{BE H^}{BI 01}{BE i^}{BI 19}{BE !}{GE WA10 EL}{AT 02}{CL}{FP %0 echo3}
  51. BATUTIL {se cur=}{AS}
  52.  
  53.